<!DOCTYPE html
	PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
	<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
	<title>��ҵ�����¼��֤</title>
	<style type="text/css">
		* {
			padding: 0;
			margin: 0;
		}

		body {
			background-image: url(images/backbg.jpg);
			background-repeat: no-repeat;
			height: 344px;
			width: 706px;
			background-position: center;
			margin-top: 0px;
			margin-right: auto;
			margin-bottom: 0px;
			margin-left: auto;
			font-size: 12px;
			line-height: 30px;
		}

		.main {
			float: right;
			height: 150px;
			width: 300px;
			clear: both;
			z-index: 2;
			margin-top: 120px;
		}

		.inputs {
			border: 1px solid #333;
			width: 120px;
		}
	</style>

	<script type="text/javascript">
		function check() {
			var user = document.getElementById("user").value;
			var pwd = document.getElementById("pwd").value;
			/*�û�������Ϊ��*/
			if (user == "") {
				alert("�û�������Ϊ��");
				return false;
			}
			/*�û������Ȳ���С��6λ*/
			if (user.length < 6) {
				alert("�û������Ȳ���С��6λ");
				return false;
			}
			/*�û���ֻ������ĸ������*/
			var users = user.toLowerCase();
			for (var i = 0; i < users.length; i++) {
				var charTest = users.charAt(i);
				if ((!(charTest >= '0' && charTest <= '9')) && (!(charTest >= 'a' && charTest <= 'z'))) {
					alert("�û��������Ƿ��ַ���ֻ�ܰ�����ĸ,����");
					return false;
				}
			}
			/*���벻��Ϊ��*/
			if (pwd == "") {
				alert("���벻��Ϊ��");
				return false;
			}
			/*���볤�Ȳ���С��6λ*/
			if (pwd.length < 6) {
				alert("���볤�Ȳ���С��6λ");
				return false;
			}

			return true;
		}
	</script>
</head>

<body>
	<div class="main">
		<form action="" method="post" name="myform" onsubmit="return check()">
			�û�����<input id="user" type="text" class="inputs" /><br />
			&nbsp;&nbsp;���룺<input id="pwd" type="password" class="inputs" />
			<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input name="" type="image" src="images/login.gif" />
		</form>

	</div>
</body>

</html>